<%@ page language="java" import="java.util.*" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@ page import="pku.ss.news.model.*"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:useBean id="国内" type="ArrayList<News>" scope="request"></jsp:useBean>
<jsp:useBean id="国际" type="ArrayList<News>" scope="request"></jsp:useBean>
<jsp:useBean id="财经" type="ArrayList<News>" scope="request"></jsp:useBean>
<jsp:useBean id="互联网" type="ArrayList<News>" scope="request"></jsp:useBean>
<jsp:useBean id="房产" type="ArrayList<News>" scope="request"></jsp:useBean>
<jsp:useBean id="汽车" type="ArrayList<News>" scope="request"></jsp:useBean>
<jsp:useBean id="体育" type="ArrayList<News>" scope="request"></jsp:useBean>
<jsp:useBean id="娱乐" type="ArrayList<News>" scope="request"></jsp:useBean>
<jsp:useBean id="教育" type="ArrayList<News>" scope="request"></jsp:useBean>
<jsp:useBean id="游戏" type="ArrayList<News>" scope="request"></jsp:useBean>
<jsp:useBean id="健康" type="ArrayList<News>" scope="request"></jsp:useBean>
<jsp:useBean id="科技" type="ArrayList<News>" scope="request"></jsp:useBean>
<jsp:useBean id="社会" type="ArrayList<News>" scope="request"></jsp:useBean>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
　

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    
    
    <title>MyNews--分类新闻</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<link href="theme/home.css" rel="stylesheet" type="text/css" />


  </head>
  
  <body>

<div id="header">
	<h1>my NEWS</h1>
</div>

<div id="menu">
	<ul>
		<li><a href="home.do" accesskey="1" title="">我的首页</a></li>
		<li><a href="catagory.do" accesskey="2" title="">分类新闻</a></li>
		<li><a href="subscription.do" accesskey="3" title="">我的订阅</a></li>
		<li><a href="login.jsp" accesskey="4" title="">登录</a></li>
		<li><a href="register.jsp" accesskey="5" title="">注册</a></li>
	</ul>
</div>








<!-- end header -->
<div id="page">
	<div id="content">
		<!--box-01-->
		<div class="box">
			<h2 class="title bg4">International News</h2>
			<div class="content">
				<c:forEach items="${国际}" var="news">
  	 			<a href="news.do?url=${news.url}&title=${news.title}&time=<fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&source=${news.source}&description=${news.description}" target="_blank">${news.title}</a>
  	 			<br/><fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm"/>&nbsp;${news.source}	<br/>
  	 			${news.description}<br/>
  	 			<br/>
  	 			</c:forEach>
			</div>
		</div>
		<!--end box-->
		
		
		<!--box-->
		<div class="box" style="padding-left: 19px;">
			<h2 class="title bg5">Domestic News</h2>
			<div class="content">
			
				<c:forEach items="${国内}" var="news">
  	 <a href="news.do?url=${news.url}&title=${news.title}&time=<fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&source=${news.source}&description=${news.description}" target="_blank">${news.title}</a><br/><fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm"/>${news.source}	<br/>
  	 ${news.description}<br/>
  	 <br/>
  	 </c:forEach>
  	 
			</div>
		</div>
		<!--end box-->
		<div class="box">
			<h2 class="title bg8">Finance</h2>
			<div class="content">
				<c:forEach items="${财经}" var="news">
  	 <a href="news.do?url=${news.url}&title=${news.title}&time=<fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&source=${news.source}&description=${news.description}" target="_blank">${news.title}</a><br/><fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm"/>${news.source}	<br/>
  	 ${news.description}<br/>
  	 <br/>
  	 </c:forEach>
			</div>
		</div>
		<!--end box-->
		<div class="box" style="padding-left: 19px;">
			<h2 class="title bg9">Internet</h2>
			<div class="content">
	<c:forEach items="${互联网}" var="news">
  	 <a href="news.do?url=${news.url}&title=${news.title}&time=<fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&source=${news.source}&description=${news.description}" target="_blank">${news.title}</a><br/><fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm"/>${news.source}	<br/>
  	 ${news.description}<br/>
  	 <br/>
  	 </c:forEach>
			</div>
		</div>
		<!--end box-->
		<div class="box">
			<h2 class="title bg10">Property</h2>
			<div class="content">
					<c:forEach items="${房产}" var="news">
  	 <a href="news.do?url=${news.url}&title=${news.title}&time=<fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&source=${news.source}&description=${news.description}" target="_blank">${news.title}</a><br/><fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm"/>${news.source}	<br/>
  	 ${news.description}<br/>
  	 <br/>
  	 </c:forEach>
			</div>
		</div>
		<!--end box-->
		<div class="box" style="padding-left: 19px;">
			<h2 class="title bg11">Automotive</h2>
			<div class="content">
				<c:forEach items="${汽车}" var="news">
  	 <a href="news.do?url=${news.url}&title=${news.title}&time=<fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&source=${news.source}&description=${news.description}" target="_blank">${news.title}</a><br/><fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm"/>${news.source}	<br/>
  	 ${news.description}<br/>
  	 <br/>
  	 </c:forEach>
			</div>
		</div>
		<!--end box-->
		<div class="box">
			<h2 class="title bg12">Sports</h2>
			<div class="content">
				<c:forEach items="${体育}" var="news">
  	 <a href="news.do?url=${news.url}&title=${news.title}&time=<fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&source=${news.source}&description=${news.description}" target="_blank">${news.title}</a><br/><fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm"/>${news.source}	<br/>
  	 ${news.description}<br/>
  	 <br/>
  	 </c:forEach>
			</div>
		</div>
		<!--end box-->
		<div class="box" style="padding-left: 19px;">
			<h2 class="title bg13">entertainment</h2>
			<div class="content">
				<c:forEach items="${娱乐}" var="news">
  	 <a href="news.do?url=${news.url}&title=${news.title}&time=<fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&source=${news.source}&description=${news.description}" target="_blank">${news.title}</a><br/><fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm"/>${news.source}	<br/>
  	 ${news.description}<br/>
  	 <br/>
  	 </c:forEach>
			</div>
		</div>
		<!--end box-->
		<div class="box">
			<h2 class="title bg14">Education</h2>
			<div class="content">
				<c:forEach items="${教育}" var="news">
  	 <a href="news.do?url=${news.url}&title=${news.title}&time=<fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&source=${news.source}&description=${news.description}" target="_blank">${news.title}</a><br/><fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm"/>${news.source}	<br/>
  	 ${news.description}<br/>
  	 <br/>
  	 </c:forEach>
			</div>
		</div>
		<!--end box-->
		<div class="box" style="padding-left: 19px;">
			<h2 class="title bg15">game</h2>
			<div class="content">
			<c:forEach items="${游戏}" var="news">
  	 <a href="news.do?url=${news.url}&title=${news.title}&time=<fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&source=${news.source}&description=${news.description}" target="_blank">${news.title}</a><br/><fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm"/>${news.source}	<br/>
  	 ${news.description}<br/>
  	 <br/>
  	 </c:forEach>
			</div>
		</div>
		<!--end box-->
		
		
				<div class="box">
			<h2 class="title bg16">Technology</h2>
			<div class="content">
			<c:forEach items="${科技}" var="news">
  	 <a href="news.do?url=${news.url}&title=${news.title}&time=<fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&source=${news.source}&description=${news.description}" target="_blank">${news.title}</a><br/><fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm"/>${news.source}	<br/>
  	 ${news.description}<br/>
  	 <br/>
  	 </c:forEach>
			</div>
		</div>
		<!--end box-->
		<div class="box" style="padding-left: 19px;">
			<h2 class="title bg17">Social</h2>
			<div class="content">
				<c:forEach items="${社会}" var="news">
  	 <a href="news.do?url=${news.url}&title=${news.title}&time=<fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm:ss"/>&source=${news.source}&description=${news.description}" target="_blank">${news.title}</a><br/><fmt:formatDate value="${news.time}" type="both" pattern="yyyy-MM-dd HH:mm"/>${news.source}	<br/>
  	 ${news.description}<br/>
  	 <br/>
  	 </c:forEach>
			</div>
		</div>
		<!--end box-->

		</div>
	<!-- end content -->
	<div style="clear: both;">
&nbsp;</div>
</div>
<!-- end page -->
<div id="footer">
	<p id="legal"><strong></strong>© 2009. Designed by
	<a href="http://www.ss.pku.edu.cn">北京大学软件与微电子学院</a></p>
	
</div>
<!-- end footer -->




	
  
  </body>
</html>